﻿--[[
   @brief    game mananger desc
   @author   hqzheng
   @version  1.0
   @date     2016-06-12
--]]

game_mgr_desc = {
    module_name = 'game_mgr',
    events = {
        {
            c_event = {
               
            },
            lua_event = {
                 {
                     id = banner_event.INIT_BANNER_LIST,
                     callback =  "game_mgr_control.init"
                 },
                 {
                    id = main_web_event.ON_JS_CALLBACK_TO_GAME_MGR,
                    callback = "game_mgr_control.handle_js_callback"
                 },
                {
                    id = game_keeper_event.GAME_KEEPER_ON_JS_CALLBACK_LOCAL_GAME_PAGE,
                    callback = "game_mgr_control.on_get_game_keeper_call"
                 },
                 {
                    id = banner_event.UPDATE_GAME_STATE,
                    callback = "game_mgr_control.gk_update_game_state"
                 },
            },
            reg_service = {
                {
                    id = 'i_serivce_open_game_directory',
                    callback = "game_mgr_control.on_service_open_game_directory"
                    -- 入参:  data =｛ game_id:x ｝
                },
                {
                  -- 卸载游戏
                  id = 'i_serivce_uninstall_game',
                  -- 入参:  data =｛ game_id:x ｝
                  callback = "game_mgr_control.on_service_uninstall_game"
                },
            },
            lua_file = 'game_mgr\\control.lua'
        }
    }
};

desc_mgr.add(game_mgr_desc);